package com.itrencai.d3_polymorphic.usb;


//创建一个电脑对象，创建USB设备对象，安装启动
public class Test {
    public static void main(String[] args) {
        //a.创建电脑对象
        Computer c=new Computer("外星人");
        c.start();
        //b.创建鼠标对象，键盘对象
        USB u=new KeyBoard("双飞燕");
        c.installUAB(u);
        USB u1=new Mouse("罗技");
        c.installUAB(u1);



    }
}
